﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.Windsor;
using IService;
//using Castle.MicroKernel.Lifestyle;
using Castle.Windsor.Installer;
using DAL;
using Service;

namespace ScheduleService
{
    public class JobBase : IDisposable
    {
         private readonly IDisposable _scope;

         protected IWindsorContainer container;

        protected ITestServer testService  ;
        public JobBase()
        {
            //_scope = BootstrapContainer.Container.BeginScope();
            testService = BootstrapContainer.Container.Resolve<ITestServer>();
        }

        public void Dispose()
        {
            _scope.Dispose();
        }
    }
}
